package com.Day1009;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class OutputSteam {
    public static void main(String[] args) throws IOException {
        String filePath = "D:\\IDEA\\dddd\\src\\com\\lzy\\day01\\b.txt";
        File file = new File(filePath);
        FileOutputStream fileOutputStream = new FileOutputStream(file);
        String content = "Hello World";
        fileOutputStream.write(content.getBytes());
        fileOutputStream.close();

    }
}
